<template>
  <view :style="themeColor">
    <view class="page">
      <view class="flex flex-direction flex-wrap align-stretch benben-position-layout flex dockingManufacturers_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub dockingManufacturers_fd0_0'>
          <view class='flex flex-wrap align-center dockingManufacturers_fd0_0_c0' @tap.stop="handleJumpDiy"
            data-type="back" data-url="1">
            <text class='fu-iconfont2  dockingManufacturers_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='dockingManufacturers_fd0_0_c1_c0'>对接厂家</text>
          </view>
          <view class='flex flex-wrap align-center justify-end dockingManufacturers_fd0_0_c0'>
            <image class='dockingManufacturers_fd0_0_c2_c0' mode="aspectFit" :src='STATIC_URL+"7.png"'></image>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout dockingManufacturers_flex_1">
        <view class='flex flex-wrap align-center justify-between dockingManufacturers_fd1_0'>
          <text class='dockingManufacturers_fd1_0_c0'>欢迎洛阳张老板加入惠找粮</text>
          <image class='dockingManufacturers_fd1_0_c1' mode="aspectFit" :src='STATIC_URL+"7.png"'></image>
        </view>
      </view>

      <!---flex布局flex布局结束-->
      <!---flex布局flex布局开始-->
      <view class="flex benben-flex-layout flex-wrap align-center">
        <view>
          <benben-flex-tabs class-name='dockingManufacturers_benbenTabsfd2_0' v-model="tabls" ref="benben_tabsfd2_0"
            select-mark="benben_tabsfd2_0" key="benben_tabsfd2_0" :open-title-type='false' :open-sticky='true' :top='0'
            @change="getList()" :is-show-content='false' :scrollspy='false' :tabs-info.sync="tabsInfofd2_0">

            <scroll-view @scroll="tabsInfofd2_0.scrollX = $event.detail.scrollLeft" id="benben_tabsfd2_0"
              class="benben-tabs" style="width:750rpx" :scroll-x="true" :scroll-left.sync="tabsInfofd2_0.moveX"
              scroll-with-animation="all .3s ease">
              <view class="benben-tabs-content" id="benben_tabsfd2_0-content">
                <view id="benben_tabsfd2_0-title" class="benben-tabs-title flex flex align-center justify-around">
                  <view :class="{ 'checkTitlefd2_0': tabls == '1', 'flex flex-wrap align-center': true }"
                    @tap="tabls = '1'" :id="`benben_tabsfd2_0-title-item-${'1'}`">

                    <text>小麦厂家</text>

                  </view>
                  <view :class="{ 'checkTitlefd2_0': tabls == '2', 'flex flex-wrap align-center': true }"
                    @tap="tabls = '2'" :id="`benben_tabsfd2_0-title-item-${'2'}`">

                    <text>玉米厂家</text>

                  </view>
                </view>
                <view :style="{ left: tabsInfofd2_0.lineleft, maxWidth: tabsInfofd2_0.lineWidth ,}"
                  id="benben_tabsfd2_0-line"
                  class="benben-tabs-line flex benben-flex-tabs-line dockingManufacturers_linefd2_0"></view>
              </view>
            </scroll-view>

          </benben-flex-tabs>

        </view>
      </view>

      <!---flex布局flex布局结束-->
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout">
        <view class='flex flex-wrap align-center justify-between dockingManufacturers_fd3_0'>
          <view class='flex flex-wrap align-center'>
            <text class='dockingManufacturers_fd3_0_c0_c0'>省份</text>
            <text class='dockingManufacturers_fd3_0_c0_c1'>厂家名称</text>
          </view>
          <view class='flex flex-wrap align-center'>
            <text class='dockingManufacturers_fd3_0_c1_c0'>价格</text>
            <text class='dockingManufacturers_fd3_0_c1_c0'>涨落</text>
            <text class='dockingManufacturers_fd3_0_c1_c0'>详情</text>
          </view>
        </view>
        <view class='flex flex-wrap align-center dockingManufacturers_fd3_1' v-for="(item,index) in dataList"
          :key="index">
          <view class='flex flex-wrap align-center dockingManufacturers_fd3_1_c0'>
            <text class='dockingManufacturers_fd3_1_c0_c0'>{{item.chengshi}}</text>
          </view>
          <view class='flex flex-direction flex-wrap align-stretch flex-sub'>
            <view class='flex flex-wrap align-center dockingManufacturers_fd3_1_c1_c0'
              v-for="(itemC,indexC) in item.list" :key="indexC" @tap.stop="handleJumpDiy" data-type="navigateTo"
              :data-url="`/pages/shouye/manufacturerDetails/manufacturerDetails?aid=${itemC.aid}`">
              <view class='flex flex-direction flex-wrap align-start' style="width: 250rpx;">
                <text class='dockingManufacturers_fd3_1_c1_c0_c0_c0'>{{itemC.firm_mingcheng}}</text>
                <text class='dockingManufacturers_fd3_1_c1_c0_c0_c1'>{{itemC.chengshi_area}}</text>
              </view>
              <text class='dockingManufacturers_fd3_1_c1_c0_c1'
                style="width: 90rpx;text-align: center;">{{itemC.shougoujiage}}</text>
              <view class='flex flex-wrap align-center dockingManufacturers_fd3_1_c1_c0_c2'>
                <view class="" v-if="itemC.zhangluo=='-1'">
                  <image class='dockingManufacturers_fd3_1_c1_c0_c2_c0' mode="aspectFit" :src='STATIC_URL+"59.png"'>
                  </image>
                  <text class='dockingManufacturers_fd3_1_c1_c0_c2_c1'>{{itemC.zhangluo_num}}</text>
                </view>
                <view class="" v-if="itemC.zhangluo=='1'">
                  <image class='dockingManufacturers_fd3_1_c1_c0_c2_c0' mode="aspectFit" :src='STATIC_URL+"60.png"'>
                  </image>
                  <text class='dockingManufacturers_fd3_1_c1_c2_c2_c1'>{{itemC.zhangluo_num}}</text>
                </view>
                <view class="" v-if="itemC.zhangluo=='0'" style="width: 40rpx;text-align: center;">
                  <!-- <image class='dockingManufacturers_fd3_1_c1_c0_c2_c0' mode="aspectFit" :src='STATIC_URL+"60.png"'>
                  </image> -->
                  <text class='dockingManufacturers_fd3_1_c1_c2_c2_c1'
                    style="color: #666;">{{itemC.zhangluo_num}}</text>
                </view>
              </view>
              <image class='dockingManufacturers_fd3_1_c1_c0_c3' mode="aspectFit" :src='STATIC_URL+"58.png"'></image>
            </view>
          </view>
        </view>
        <view class='flex flex-wrap align-center justify-between dockingManufacturers_fd3_2' @tap.stop="handleJumpDiy"
          data-type="relaunch" :data-url="`/pages/tabBar/release/release`">
          <!-- <view class='flex flex-direction flex-wrap align-stretch flex-sub'>
            <image class='dockingManufacturers_fd3_2_c0_c0' mode="aspectFit" :src='STATIC_URL+"41.png"'></image>
            <view class='flex flex-wrap align-center dockingManufacturers_fd3_2_c0_c1'>
              <image class='dockingManufacturers_fd3_2_c0_c1_c0' mode="aspectFit" :src='STATIC_URL+"42.png"'></image>
              <text class='dockingManufacturers_fd3_2_c0_c1_c1'>自动匹配全国货源，找粮更快！</text>
            </view>
          </view>
          <button class='dockingManufacturers_fd3_2_c1'>智能找粮</button> -->
        </view>
      </view>
      <fu-empty-ui v-if="dataList.length==0"></fu-empty-ui>
      <!---flex布局flex布局结束-->
      <benben-popup v-model="popupShow1706379234601" :mask="true" :mask-close-able="false" mode='center' :z-index='999'>
        <!---flex布局flex布局开始-->
        <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout dockingManufacturers_flex_4">
          <view class='flex flex-direction flex-wrap align-center dockingManufacturers_fd4_0'>
            <text class='dockingManufacturers_fd4_0_c0'>友情提示</text>
            <text class='dockingManufacturers_fd4_0_c1'>非会员暂无法拨打</text>
            <button class='dockingManufacturers_fd4_0_c2' @tap.stop="handleJumpDiy" data-type="navigateTo"
              :data-url="`/pages/wode/rurchaseMembership/rurchaseMembership`">去充值会员</button>
          </view>
        </view>

        <!---flex布局flex布局结束-->

      </benben-popup>


    </view>
  </view>
</template>
<script>
  export default {
    components: {},


    data() {
      return {
        "popupShow1706379234601": false,
        "tabsInfofd2_0": {
          lineleft: '',
          lineWidth: '',
          moveX: 0,
          scrollX: 0,
          PageScrollX: 0
        },
        "tabls": "1",
        "member": "1",
        dataList: []
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      this.getList()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      getList() {
        this.$api.post(global.apiUrls.post65d9944975393, {
          firmkind_id: this.tabls
        }).then(res => {
          if (res.data.code == 1) {
            this.dataList = res.data.data
          }
        })
      },
      //点击详情
      clickDetailsFunc() {
        if (this.member == '1') {
          this.$urouter.navigateTo(`/pages/shouye/manufacturerDetails/manufacturerDetails?aid=`);
        } else {
          this.popupShow1706379234601 = true;
        }
      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: rgba(255, 255, 255, 1);
    background-size: 100% auto;
  }

  .dockingManufacturers_flex_0 {
    background: rgba(255, 255, 255, 1);
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto;
  }

  .dockingManufacturers_fd0_0_c2_c0 {
    width: 119rpx;
    height: 55rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .dockingManufacturers_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .dockingManufacturers_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .dockingManufacturers_fd0_0_c0 {
    width: 120rpx;
  }

  .dockingManufacturers_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .dockingManufacturers_flex_1 {
    padding: 24rpx 30rpx 0rpx 30rpx;
  }

  .dockingManufacturers_fd1_0_c1 {
    width: 119rpx;
    height: 55rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .dockingManufacturers_fd1_0_c0 {
    color: #101010;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .dockingManufacturers_fd1_0 {
    background: rgba(241, 247, 253, 1);
    border-radius: 12rpx;
    background-size: 100% auto;
    padding: 12rpx 24rpx 12rpx 21rpx;
  }

  .dockingManufacturers_linefd2_0 {
    background: rgba(37, 104, 174, 1);
    width: 40rpx;
    height: 6rpx;
    top: 93rpx;
    background-size: 100% auto !important;
    border-radius: 3rpx;
  }

  .checkTitlefd2_0 {
    font-weight: 700 !important;
    font-size: 32rpx !important;
    color: #2568AE !important;
    background-color: rgba(255, 255, 255, 1) !important;
  }

  ::v-deep .dockingManufacturers_benbenTabsfd2_0 {
    background: #fff;
    width: 750rpx;
    height: 120rpx;
    white-space: nowrap;
    text-align: center;
    font-size: 32rpx;
    font-weight: 400;
    color: #666666;
  }

  .dockingManufacturers_fd3_4 {
    background: url(image-path('40.png')) no-repeat;
    background-size: 100% 100%;
    padding: 24rpx 24rpx 16rpx 28rpx;
    margin: 32rpx 16rpx 0rpx 16rpx;
  }

  .dockingManufacturers_fd3_2_c1 {
    background: linear-gradient(90deg, #FDECBF 0%, #FFD998 100%);
    border-radius: 8rpx;
    width: 160rpx;
    line-height: 64rpx;
    font-size: 28rpx;
    color: rgba(121, 76, 32, 1);
  }

  .dockingManufacturers_fd3_2_c0_c1_c1 {
    color: #FEE0A6;
    font-size: 24rpx;
    font-weight: 500;
    line-height: 34rpx;
  }

  .dockingManufacturers_fd3_2_c0_c1_c0 {
    width: 85rpx;
    height: 39rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    margin: 0rpx 8rpx 0rpx 0rpx;
  }

  .dockingManufacturers_fd3_2_c0_c1 {
    margin: 18rpx 0rpx 0rpx 0rpx;
  }

  .dockingManufacturers_fd3_2_c0_c0 {
    width: 334rpx;
    height: 52rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .dockingManufacturers_fd3_2 {
    background: url(image-path('40.png')) no-repeat;
    width: 690rpx;
    height: 165rpx;
    background-size: 100% 100%;
    margin: 32rpx auto;
  }

  .dockingManufacturers_fd3_1_c1_c2_c2_c1 {
    color: rgba(219, 68, 59, 1);
    font-size: 28rpx;
    font-weight: 700;
    line-height: 32rpx;
  }

  .dockingManufacturers_fd3_1_c1_c0_c3 {
    width: 24rpx;
    height: 24rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    margin: 0rpx 0rpx 0rpx auto;
  }

  .dockingManufacturers_fd3_1_c1_c0_c2_c1 {
    color: #50B6A2;
    font-size: 28rpx;
    font-weight: 700;
    line-height: 32rpx;
  }

  .dockingManufacturers_fd3_1_c1_c0_c2_c0 {
    width: 24rpx;
    height: 24rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    margin: 0rpx 4rpx 0rpx 0rpx;
  }

  .dockingManufacturers_fd3_1_c1_c0_c2 {
    margin: 0rpx 0rpx 0rpx 30rpx;
  }

  .dockingManufacturers_fd3_1_c1_c0_c1 {
    color: #333333;
    font-size: 28rpx;
    font-weight: 700;
    line-height: 32rpx;
    margin: 0rpx 0rpx 0rpx 48rpx;
  }

  .dockingManufacturers_fd3_1_c1_c0_c0_c1 {
    margin: 10rpx 0rpx 0rpx 0rpx;
    color: #878787;
    font-size: 24rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .dockingManufacturers_fd3_1_c1_c0_c0_c0 {
    color: #333333;
    font-size: 28rpx;
    font-weight: 700;
    line-height: 32rpx;
  }

  .dockingManufacturers_fd3_1_c1_c0 {
    border-bottom: 1px solid #eee;
    padding: 24rpx 0rpx 24rpx 0rpx;
  }

  .dockingManufacturers_fd3_1_c0_c0 {
    color: #101010;
    font-size: 28rpx;
    font-weight: 700;
    line-height: 32rpx;
  }

  .dockingManufacturers_fd3_1_c0 {
    margin: 0rpx 49rpx 0rpx 0rpx;
  }

  .dockingManufacturers_fd3_1 {
    background: rgba(248, 248, 250, 1);
    margin: 26rpx 16rpx 0rpx 16rpx;
    border-radius: 16rpx;
    background-size: 100% auto;
    padding: 0rpx 8rpx 0rpx 16rpx;
  }

  .dockingManufacturers_fd3_0_c1_c0 {
    color: #666666;
    font-size: 28rpx;
    font-weight: 500;
    line-height: 32rpx;
    margin: 0rpx 0rpx 0rpx 43rpx;
  }

  .dockingManufacturers_fd3_0_c0_c1 {
    color: #666666;
    font-size: 28rpx;
    font-weight: 500;
    line-height: 32rpx;
  }

  .dockingManufacturers_fd3_0_c0_c0 {
    color: #666666;
    font-size: 28rpx;
    font-weight: 500;
    line-height: 32rpx;
    margin: 0rpx 49rpx 0rpx 0rpx;
  }

  .dockingManufacturers_fd3_0 {
    margin: 0rpx 32rpx 0rpx 32rpx;
  }

  .dockingManufacturers_flex_4 {
    background: rgba(255, 255, 255, 1);
    width: 540rpx;
    border-radius: 16rpx;
    background-size: 100% auto;
  }

  .dockingManufacturers_fd4_0_c2 {
    background: rgba(37, 104, 174, 1);
    border-radius: 100rpx;
    width: 379rpx;
    line-height: 80rpx;
    font-size: 34rpx;
    color: #fff;
    margin: 40rpx 0rpx 0rpx 0rpx;
  }

  .dockingManufacturers_fd4_0_c1 {
    color: #333333;
    font-size: 30rpx;
    font-weight: 400;
    line-height: 52rpx;
    text-align: center;
    margin: 22rpx 0rpx 0rpx 0rpx;
  }

  .dockingManufacturers_fd4_0_c0 {
    color: #101010;
    font-size: 32rpx;
    font-weight: 500;
    line-height: 32rpx;
  }

  .dockingManufacturers_fd4_0 {
    padding: 40rpx 0rpx 40rpx 0rpx;
  }
</style>
